agent: add adapter for Baidu Search - #2641
Merged
esokullu merged 2 commits intoAug 2, 2026
Merged
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a mirrored Baidu Search adapter for Chrome and Firefox.
Without this adapter, the agent can mistake ads or generated-answer blocks for organic evidence, infer redirect destinations from snippets, or lose the search task when Baidu sends the tab to its separate verification host.
wappass.baidu.comverification surfaces without hijacking Maps, Tieba, Pan, or Baike.backurlacross百度安全验证, stopping for manual completion instead of bypassing or looping.Validation
wappass.baidu.com/static/captcha/...with title百度安全验证, and the final URL selected thebaidu-searchadapter after the matcher was extended.node test/run.js: 1398/1399 passed; the single failure predates this branch and is the repository's changelog/package version mismatch.node test/security/injection-corpus.mjs: 60/60 passed.git diff --check: passed.Compatibility and risks
The change is prompt-only and mirrored across both browser builds. Baidu experiments with result layout and verification frequency, so the notes are dated 2026-08 and avoid unstable result indices.